// 活动清单
import http from '../utils/httpInstance'

// 创建
export function createActivities(data: object) {
  return http.post('/todoList', data, {
    headers: { successAlert: true },
  })
}

// 查询
export function getActivities(params?: object) {
  return http.get('/todoList', { params })
}

// 删除
export function deleteActivities(id: unknown) {
  return http.delete(`/todoList/${id}`, {
    headers: { successAlert: true },
  })
}

// 更新
export function updateActivities(id: unknown, data?: object) {
  return http.put(`/todoList/${id}`, data)
}
